Public Class ThayDoiQD3
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents btnThoat As System.Windows.Forms.Button
    Friend WithEvents btnCapNhat As System.Windows.Forms.Button
    Friend WithEvents txtTGChamNhatHuyDatVe As System.Windows.Forms.TextBox
    Friend WithEvents txtTGChamNhatDatVe As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(ThayDoiQD3))
        Me.btnThoat = New System.Windows.Forms.Button
        Me.btnCapNhat = New System.Windows.Forms.Button
        Me.txtTGChamNhatHuyDatVe = New System.Windows.Forms.TextBox
        Me.txtTGChamNhatDatVe = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'btnThoat
        '
        Me.btnThoat.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.btnThoat.Location = New System.Drawing.Point(492, 162)
        Me.btnThoat.Name = "btnThoat"
        Me.btnThoat.Size = New System.Drawing.Size(88, 32)
        Me.btnThoat.TabIndex = 3
        Me.btnThoat.Text = "Thoát"
        '
        'btnCapNhat
        '
        Me.btnCapNhat.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.btnCapNhat.Location = New System.Drawing.Point(267, 162)
        Me.btnCapNhat.Name = "btnCapNhat"
        Me.btnCapNhat.Size = New System.Drawing.Size(88, 32)
        Me.btnCapNhat.TabIndex = 2
        Me.btnCapNhat.Text = "Cập Nhật"
        '
        'txtTGChamNhatHuyDatVe
        '
        Me.txtTGChamNhatHuyDatVe.ForeColor = System.Drawing.Color.Blue
        Me.txtTGChamNhatHuyDatVe.Location = New System.Drawing.Point(352, 112)
        Me.txtTGChamNhatHuyDatVe.Name = "txtTGChamNhatHuyDatVe"
        Me.txtTGChamNhatHuyDatVe.Size = New System.Drawing.Size(157, 26)
        Me.txtTGChamNhatHuyDatVe.TabIndex = 1
        '
        'txtTGChamNhatDatVe
        '
        Me.txtTGChamNhatDatVe.ForeColor = System.Drawing.Color.Blue
        Me.txtTGChamNhatDatVe.Location = New System.Drawing.Point(352, 72)
        Me.txtTGChamNhatDatVe.Name = "txtTGChamNhatDatVe"
        Me.txtTGChamNhatDatVe.Size = New System.Drawing.Size(157, 26)
        Me.txtTGChamNhatDatVe.TabIndex = 0
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(56, 112)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(280, 23)
        Me.Label4.TabIndex = 15
        Me.Label4.Text = "Thời Gian Chậm Nhất Khi Hủy Đặt Vé"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(56, 72)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(280, 23)
        Me.Label3.TabIndex = 14
        Me.Label3.Text = "Thời Gian Chậm Nhất Khi Đặt Vé"
        '
        'Label1
        '
        Me.Label1.Font = New System.Drawing.Font("Times New Roman", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(163, Byte))
        Me.Label1.Location = New System.Drawing.Point(125, 9)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(518, 40)
        Me.Label1.TabIndex = 13
        Me.Label1.Text = "QUY ĐỊNH HẠN ĐẶT VÉ"
        Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'PictureBox1
        '
        Me.PictureBox1.ErrorImage = Nothing
        Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
        Me.PictureBox1.Location = New System.Drawing.Point(8, 8)
        Me.PictureBox1.Name = "PictureBox1"
        Me.PictureBox1.Size = New System.Drawing.Size(100, 50)
        Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox1.TabIndex = 20
        Me.PictureBox1.TabStop = False
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(515, 75)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(231, 23)
        Me.Label2.TabIndex = 21
        Me.Label2.Text = "Ngày  (Trước Ngày Khởi Hành)"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(515, 116)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(231, 23)
        Me.Label5.TabIndex = 22
        Me.Label5.Text = "Ngày  (Vào Ngày Khởi Hành)"
        '
        'ThayDoiQD3
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
        Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
        Me.ClientSize = New System.Drawing.Size(758, 215)
        Me.Controls.Add(Me.Label5)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.PictureBox1)
        Me.Controls.Add(Me.btnThoat)
        Me.Controls.Add(Me.btnCapNhat)
        Me.Controls.Add(Me.txtTGChamNhatHuyDatVe)
        Me.Controls.Add(Me.txtTGChamNhatDatVe)
        Me.Controls.Add(Me.Label4)
        Me.Controls.Add(Me.Label3)
        Me.Controls.Add(Me.Label1)
        Me.Font = New System.Drawing.Font("Times New Roman", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ForeColor = System.Drawing.Color.Blue
        Me.Name = "ThayDoiQD3"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Thay Đổi Qui Định 3"
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region

    Private Sub ThayDoiQD3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim ts As New ThamSo
        Dim ds As DataSet
        ds = ts.LayQD3()
        Me.txtTGChamNhatDatVe.Text = ds.Tables(0).Rows(0)(0)
        Me.txtTGChamNhatHuyDatVe.Text = ds.Tables(0).Rows(0)(1)
    End Sub

    Private Sub btnCapNhat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCapNhat.Click
        Dim ts As New ThamSo
        ts.CapNhatQD3(txtTGChamNhatDatVe.Text, txtTGChamNhatHuyDatVe.Text)
        ts = Nothing
        MessageBox.Show("Đã Cập Nhật !")
    End Sub

    Private Sub btnThoat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThoat.Click
        Me.Close()
    End Sub
End Class
